<?php

class Front_Form_Recherche extends Zend_Form
{
	public function __construct($options = null)
	{
		parent::__construct($options);
		$this->setName('Recherche');

		$id = new Zend_Form_Element_Hidden('id');

		$artiste = new Zend_Form_Element_Text('Nom');
		$artiste->setLabel('Nom')
		->setRequired(true)
		->addFilter('StripTags')
		->addFilter('StringTrim')
		->addValidator('NotEmpty');

		$titre = new Zend_Form_Element_Text('Prix');
		$titre->setLabel('Prix max')
		->setRequired(true)
		->addFilter('StripTags')
		->addFilter('StringTrim')
		->addValidator('NotEmpty');

		$envoyer = new Zend_Form_Element_Submit('envoyer');
		$envoyer->setAttrib('id', 'boutonenvoyer');


		$this->addElements(array($id, $artiste, $titre, $envoyer));
	}
}